package com.faxsun.web.controller.validator;

import org.springframework.stereotype.Component;
import org.springframework.validation.Errors;
import org.springframework.validation.ValidationUtils;

@Component("fxInfoUserRegisterValidator")
public class UserRegisterValidator extends UserBaseValidator {

	@Override
	public void validate(Object target, Errors errors) {

		super.validate(target, errors);
		ValidationUtils.rejectIfEmptyOrWhitespace(errors, "name",
				"name.required");
	}
}
